import { http } from "@/utils/http";
export function getRegionPageList(data: Partial<ShopRegionPageRequest & PageRequest>) {
  return http.post<MResponse<Array<ShopRegionVo>>>("/product/region/getRegionPageList", { data });
}

export function addRegion(data: ShopRegionAddRequest) {
  return http.post<MResponse>("/product/region/addRegion", { data });
}

export function updateRegion(data: ShopRegionUpdateRequest) {
  return http.post<MResponse>("/product/region/updateRegion", { data });
}

export function delRegion(data: ShopRegionDelRequest) {
  return http.post<MResponse>("/product/region/delRegion", { data });
}
export function getRegionTree() {
  return http.post<MResponse<Array<SelectTreeVo>>>("/product/region/getRegionTree");
}
